Page({
    data: {
        img: "",
        text: "",
        _num: 1,
        dates: "",
        times: "",
        dates1: "",
        times1: ""
    },
    menuClick: function(e) {
        console.log(e.target.dataset.num), this.setData({
            _num: e.target.dataset.num
        });
    },
    bindTimeChange: function(e) {
        console.log("谁哦按"), this.setData({
            times: e.detail.value
        });
    },
    bindDateChange: function(e) {
        console.log(e.detail.value), this.setData({
            dates: e.detail.value
        });
    },
    bindTimeChange1: function(e) {
        console.log("谁哦按"), this.setData({
            times1: e.detail.value
        });
    },
    bindDateChange1: function(e) {
        console.log(e.detail.value), this.setData({
            dates1: e.detail.value
        });
    },
    onLoad: function(e) {
        var t = this, a = Date.parse(new Date()), s = 1e3 * (a /= 1e3), n = new Date(s), i = n.getFullYear(), o = n.getMonth() + 1 < 10 ? "0" + (n.getMonth() + 1) : n.getMonth() + 1, g = n.getDate() < 10 ? "0" + n.getDate() : n.getDate(), u = n.getHours() < 10 ? "0" + n.getHours() : n.getHours(), l = n.getMinutes() < 10 ? "0" + n.getMinutes() : n.getMinutes(), d = (n.getSeconds() < 10 ? n.getSeconds() : n.getSeconds(), 
        i + "-" + o + "-" + g), c = u + ":" + l;
        t.setData({
            dates: d,
            times: c,
            dates1: d,
            times1: c
        }), 1 == (wx.getStorageSync("WapprovePrice2") || "") && t.setData({
            img: "/assets/images/pho.png",
            text: "图文咨询"
        });
    },
    onShow: function() {}
});